﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClassModel;
using ClassDAL;

namespace ClassBLL
{
    public class t_ClassTeacherCourse_NoSchedule_BLL
    {

         /// <summary>
        /// 插入不排课数据
        /// </summary>
        /// <param name="noSchedule"></param>
        public static int InsertNoScheduleData(t_ClassTeacherCourse_NoSchedule noSchedule)
        {
            if (noSchedule == null) throw new ArgumentException("noSchedule is null");

            return t_ClassTeacherCourse_NoSchedule_DAL.InsertNoScheduleData(noSchedule);
        }


         /// <summary>
        /// 获得某个任务下的所有不排课数据(包括老师、班级、课程)
        /// </summary>
        /// <param name="taskid"></param>
        /// <returns></returns>
        public static List<t_ClassTeacherCourse_NoSchedule> GetTeacherClassCourseNoScheduleList(int taskid)
        {
            return t_ClassTeacherCourse_NoSchedule_DAL.GetTeacherClassCourseNoScheduleList(taskid);
        }

        /// <summary>
        /// 通过任务id删除之前所有不排课数据
        /// </summary>
        /// <param name="taskId"></param>
        /// <returns></returns>
        public static int DeleteNoScheduleWithTaskId(int taskId)
        {
            return t_ClassTeacherCourse_NoSchedule_DAL.DeleteNoScheduleWithTaskId(taskId);
        }
    }
}
